package org.simple.wechat.demo.dto;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import org.simple.wechat.demo.config.IEnumDeserializer;
import org.simple.wechat.demo.ienum.IEnum;

/***
 * @author gaoqijin
 * @date 2020-9-11
 * @Description
 */
@JsonDeserialize(using = IEnumDeserializer.class)
public enum PayType implements IEnum {

  WE_CHAT(22,"微信支付"),
  Ali_PAY(33,"支付宝支付"),
  CARD_PAY(44,"网银卡支付")
  ;
  PayType(int code,String desc){
    this.code = code;
    this.desc = desc;
  }

  private int code;
  private String desc;

  @Override public int getCode() {
    return this.code;
  }

  @Override public String getDesc() {
    return this.desc;
  }

  @Override public String getName() {
    return name();
  }
}
